package com.aiyan.edu.service.search.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author: zqzhou
 * @create: 2019/12/02 11:22
 **/
@RestController
@RequestMapping("/search/data")
public class SearchController {

    @GetMapping("/{id}")
    public String search(@PathVariable("id") String id) {
        return "got id " + id + " at " + new Date();
    }
}
